package com.qzimp.fujiancuo.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *  实体类。
 *
 * @author 李欧雯
 * @since 2024-12-20
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("")
@Table(value = "tb_collection")
public class Collection implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 收藏id
     */
    @Id(keyType = KeyType.Auto)
    @ApiModelProperty("收藏id")
    private Integer id;

    /**
     * 用户id
     */
    @ApiModelProperty("用户id")
    private Integer userinfoId;

    /**
     * 闽南厝id
     */
    @ApiModelProperty("闽南厝id")
    private Integer cuoId;

    @ApiModelProperty("")
    @Column(onInsertValue = "now()")
    private LocalDateTime createTime;

}
